﻿using HYweixinOnline.Admin;
using HYweixinOnline.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace HYweixinOnline.Controllers
{
    public class SysManagerController : Controller
    {
        /// <summary>
        /// Index
        /// </summary>
        /// <returns></returns>
        public ActionResult Index()
        {
            return View();
        }

        /// <summary>
        /// Home
        /// </summary>
        /// <returns></returns>
        public ActionResult Home()
        {
            return View();
        }

        /// <summary>
        /// 菜单
        /// </summary>
        /// <returns></returns>
        public ActionResult Menu()
        {
            return View();
        }


        /// <summary>
        /// 系统用户
        /// </summary>
        /// <returns></returns>
        public ActionResult Users()
        {
            List<TbSysPart> PartList = new SysPartDAO().GetByPage("IParentId=" + 0, 0, int.MaxValue).ToList();
            IList<TbSysRole> list = new SysRoleBaseDAO().GetAll();
            ViewBag.roleList = list;
            ViewBag.partList = PartList;
            return View();
        }


        /// <summary>
        /// 部门管理
        /// </summary>
        /// <returns></returns>
        public ActionResult Parts()
        {

            return View();
        }


        /// <summary>
        ///页面管理
        /// </summary>
        /// <returns></returns>
        public ActionResult Pages()
        {

            return View();
        }


        /// <summary>
        ///角色管理
        /// </summary>
        /// <returns></returns>
        public ActionResult Role()
        {

            return View();
        }

    }
}
